import {
	http
} from "@/util/request/index";

// 购物车列表
export const cartList = () => {
	return http.get("/api/shop_car/");
};

// 加入购物车
export const addCart = (params) => {
	return http.post("/api/shop_car/", params);
};

// 删除购物车
export const delCart = (id) => {
	return http.delete(`/api/shop_car/${id}/`);
};